#!/usr/bin/env node
const log = console.log,
      usr = process.argv[2],
      pwd = process.argv[3];

if(process.argv.length !== 4){
  console.error('命令行格式：cmd username password');
  process.exit(1);
}

log('usr name:%s\npassword:%s',usr,pwd);
const buf = Buffer.from(usr + ':' + pwd);
log('Bser64:',buf.toString('Base64'));
